package com.ihr360.rest.service;

import com.ihr360.commons.request.MailRequest;
import com.ihr360.rest.service.fallback.Ihr360SharedProvideFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "ihr360-shared-provider", fallback = Ihr360SharedProvideFallback.class)
public interface Ihr360SharedProvideService {

    @RequestMapping(value = "/mail/sendMail", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    Boolean sendMail(@RequestBody MailRequest mailRequest);

}
